<%@ page import="org.apache.commons.lang.StringUtils,java.util.*,com.hz.framework.util.BusinessException"%>
<%@ page contentType="text/xml;charset=UTF-8" import="com.hz.supermanage.dao.Constants" %>
<jsp:useBean id="dao" class="com.hz.supermanage.dao.OrganizationDao" />
<%
	request.setCharacterEncoding("UTF-8");
    String uuid = request.getParameter("uuid");
    Map emUser = new HashMap();
    String orgname =  "";
    try {
        if (StringUtils.isBlank(uuid)) {
            throw new BusinessException("用户标识不能为空");
        }
        emUser = dao.getPersonSelect(uuid);
        String orgid = (String) emUser.get("orgid").toString();
        orgname = (String) dao.getOrgNameSelect(orgid);
    }catch(Exception ex) {
         throw new BusinessException("失败", ex);
    }
%>
<?xml version="1.0" encoding="UTF-8"?>
<xuice>
    <info><![CDATA[
<table width=350 cellpadding=2 cellspacing=0 style='border-width:1 1 0 1;border-style:solid;border-color:#aaaaaa'>
<tr class=data_list_thead><td style='background-color:#E4E8F8'><img src=${pageContext.request.contextPath}/parts/images/img/vcard.gif align=absbottom>用户简明资料：
</td >
</tr>
</table>
<table width=350 cellpadding=2 cellspacing=0 style='background-color:#f7f7f7 ; border:1px solid #aaaaaa;'>
<COL ALIGN="right" width=20%>
<COL ALIGN="left" width="30%">
<COL ALIGN="right" width=20%>
<COL ALIGN="left" width="30%">
<tr>
<td >单位：</td><td style='color:red' ><%=orgname %></td>
<td >部门：</td><td style='color:#008000' ><%=emUser.get("deptid")%></td>
</tr>
<tr>
<td>岗位：</td>
<td style='color:#0000FF' ><%=emUser.get("posid")%></td>
<td>顺序：</td><td><%=emUser.get("perdrder")%></td>
</tr>
<tr>
<td>姓名：</td><td><%=emUser.get("personname")%></td>
<td>性别：</td><td>
<%
    if (emUser.get("sex").equals(Constants.SEX_MAN)) {
    out.print("男");
	}else if (emUser.get("sex").equals(Constants.SEX_WOMAN)) {
	out.print("女");
	}
%>
</td>
</tr>
<!--
<tr>
<td>民族：</td><td><%=emUser.get("folk")%></td>
<td>籍贯：</td><td><%=emUser.get("hometown")%></td>
</tr>
-->
<tr>
<td>出生日期：</td><td><%=emUser.get("birthday")%></td>
<td>手机号码：</td><td><%=emUser.get("mobiletelephone")%></td>
</tr>
<!--
<tr>
<td>最高学历：</td><td><%=emUser.get("mastdegree")%></td>
<td>其他证书：</td><td><%=emUser.get("certificate")%></td>
</tr>
<tr>
<td>身份证号：</td><td><%=emUser.get("idcard")%></td>
<td>健康情况：</td><td><%=emUser.get("health")%></td>
</tr>
-->
<tr >
<td>政治面貌：</td><td><%=emUser.get("genro")%></td>
<td>婚姻情况：</td><td><%=emUser.get("marriage")%></td>
</tr>

<tr>
<td>电子邮件：</td><td><%=emUser.get("email")%></td>
<td>联系电话：</td><td><%=emUser.get("telephone")%></td>
</tr>
<tr>
<td>地址：</td><td colspan=3><%=emUser.get("address")%></td>
</tr>

<tr>
<td>备注：</td><td colspan=3><%=emUser.get("remark")%></td>
</tr>
</table>
    ]]></info>
</xuice>